package com.beasts.ant.auth.service.oauth;

import org.springframework.security.core.Authentication;

import javax.servlet.http.HttpServletRequest;

/**
 * oauth 权限service
 *
 * @author Locker
 * @date 07/05/2018 4:58 PM
 * @since 1.0
 */
public interface IPermissionService {

    /**
     * 判断请求是否有权限
     *
     * @return 是否有权限
     */
    boolean hasPermission(HttpServletRequest request, Authentication authentication);

}
